From 8ba83d8852bce7813ae0c4237edd82f15014f0d0 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 10 Apr 1993 08:30:27 +0000 Subject: [PATCH] * configure.in: Don't set CC to "gcc -O" if the user specifies `--with-gcc'. Add -O to DEFS if GCC is set. --- configure1.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure1.in b/configure1.in index d9e02003f63..d02306cc8c9 100755 --- a/configure1.in +++ b/configure1.in @@ -781,14 +781,19 @@ compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1' #### Choose a compiler. DEFS=-g case ${with_gcc} in - "yes" ) CC="gcc -O99" GCC=1 ;; - "no" ) CC="cc" ;; + "yes" ) CC="gcc" GCC=1 ;; + "no" ) CC="cc" ;; * ) ] AC_PROG_CC [ esac +if [ "${GCC}" != "" ]; then + DEFS="${DEFS} -O" +fi + + #### Some other nice autoconf tests. ] AC_CONST -- 2.30.2